

package com.api.oa.services;

import com.api.oa.model.entity.YQUser;
import com.api.oa.model.vo.UserInfoVO;
import com.api.oa.model.vo.YQContacts;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface YQUserService {


    Integer add(YQUser entity);


    void remove(Long id);


    Integer update(YQUser org);

    /**
     * addmin  gov
     * @param insCode
     * @param role
     * @param account
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<YQUser> list(String insCode, String role,String account ,Integer pageIndex,Integer pageSize);


    YQUser one(Long id);


    YQUser login(String account,String passWord) throws Exception;


    YQUser register(String account, String passwd,Integer role) throws Exception;

    UserInfoVO info();

    /**
     * 机构和政府的的监管人员
     * @param insCode
     * @param role
     * @return
     */
    List<YQUser> assUser(String insCode, Integer role);

    /**
     * 修改密码
     * @param account
     * @param passwd
     * @return
     */
    Integer resetPwd(Long account, String org,String passwd) throws Exception;


    /**
     * 联系人
     * @param id
     * @param keyWord
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<YQContacts> contacts(Long id, String keyWord, Integer pageIndex, Integer pageSize);

    /**
     * 同步环信
     * @return
     */
    Integer sync();
}
